package com.car.dal.dao.performance;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgPerformanceAmount;
import com.car.util.Page;

public class PerformanceAcountDaoImp extends IbatisCommonDao<TgPerformanceAmount, Long> implements PerformanceAcountDao{

	@Override
	public List<TgPerformanceAmount> getPerformanceAcountByType1(
			TgPerformanceAmount tgPerformanceAmount) {
		return this.queryForEntityList(TgPerformanceAmount.class, "getPerformanceAcountByType1", tgPerformanceAmount);
	}

	@Override
	public List<TgPerformanceAmount> getPerformanceAcountByType(
			TgPerformanceAmount tgPerformanceAmount, Page page) {
		tgPerformanceAmount.setFirstrownum(page.getFirstrownum());
		tgPerformanceAmount.setPagesize(page.getPagesize());
		return this.queryForEntityList(TgPerformanceAmount.class, "getPerformanceAcountByType", tgPerformanceAmount);
	}

	@Override
	public List<TgPerformanceAmount> getPerformanceAcountByType2(
			TgPerformanceAmount tgPerformanceAmount) {
		return this.queryForEntityList(TgPerformanceAmount.class, "getPerformanceAcountByType2", tgPerformanceAmount);
	}

	@Override
	public List<TgPerformanceAmount> getPerformanceAcountByType3(
			TgPerformanceAmount tgPerformanceAmount) {
		return this.queryForEntityList(TgPerformanceAmount.class, "getPerformanceAcountByType3", tgPerformanceAmount);
	}
   
}
